package com.curry.cloud.rpc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(value = "provider",fallback = FeignProviderFallback.class)
public interface FeignProvider {

    @GetMapping(value = "/provider/getValue/{num}")
    Map getValue(@PathVariable(value = "num") Long num);



    @GetMapping(value = "/provider/sleep")
    String sleep();
}
